/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const transactRecords = {
  path: '/transactRecords',
  component: Layout,
  redirect: 'noRedirect',
  name: '交易记录',
  alwaysShow: true,
  meta: {
    title: '交易记录',
    icon: 'star',
    roles: ['/transactRecords/business', '/transactRecords/HisSystem', '/transactRecords/bank', '/transactRecords/paymentSys', '99999']
  },
  children: [
    {
      path: 'business',
      component: () => import('@/views/transactRecords/business/index'),
      name: 'business',
      meta: { title: '平台记录', noCache: true, roles: ['/transactRecords/business', '99999'] }
    },
    {
      path: 'HisSystem',
      component: () => import('@/views/transactRecords/HisSystem/index'),
      name: 'HisSystem',
      meta: { title: 'HIS系统记录', noCache: true, roles: ['/transactRecords/HisSystem', '99999'] }
    },
    {
      path: 'bank',
      component: () => import('@/views/transactRecords/bank/index'),
      name: 'bank',
      meta: { title: '银行记录', noCache: true, roles: ['/transactRecords/bank', '99999'] }
    },
    {
      path: 'paymentSys',
      component: () => import('@/views/transactRecords/paymentSys/index'),
      name: 'paymentSys',
      meta: { title: '支付系统记录', noCache: true, roles: ['/transactRecords/paymentSys'] }
    },
    {
      path: 'Printing',
      component: () => import('@/views/transactRecords/Printing/index'),
      name: 'Printing',
      meta: { title: '自助打印记录' }
    }
  ]
}

export default transactRecords
